﻿// 大名科技（天津）有限公司 版权所有
//
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动
//
// 任何基于本项目二次开发而产生的一切法律纠纷和责任，均与作者无关

using Microsoft.AspNetCore.Razor.Language;

namespace Admin.NET.Core;

/// <summary>
/// 客户档案表
/// </summary>
[SugarTable(null, "客户")]
[SysTable]
[SugarIndex("index_{table}_C", nameof(CusName), OrderByType.Asc)]
public partial class Customer : EntityBase
{
    /// <summary>
    /// 客户名称
    /// </summary>
    [SugarColumn(ColumnDescription = "客户名称", Length = 64)]
    [MaxLength(64)]
    public string CusName { get; set; }


    /// <summary>
    /// 客户类型（1审计   2评估 ）
    /// </summary>
    [SugarColumn(ColumnDescription = "客户类型")]
    public CustomerTypeEnum Type { get; set; }


    /// <summary>
    /// 收款数量
    /// </summary>
    [SugarColumn(ColumnDescription = "收款数量")]
    public int Quantity { get; set; }



    /// <summary>
    /// 金额(点数)
    /// </summary>
    [SugarColumn(ColumnDescription = "点数")]
    public double Money { get; set; }


    /// <summary>
    /// 资产额
    /// </summary>
    [SugarColumn(ColumnDescription = "资产额")]

    public double? PropertyMoney { get; set; }

    /// <summary>
    /// 是否收款
    /// </summary>
    [SugarColumn(ColumnDescription = "是否收款")]
    public bool IsCollected { get; set; } = false;


    /// <summary>
    /// 是否出报告
    /// </summary>
    [SugarColumn(ColumnDescription = "是否出报告")]
    public bool IsReport { get; set; } = false;


    /// <summary>
    /// 收款日期
    /// </summary>
    [SugarColumn(ColumnDescription = "收款日期")]
    public DateTime? CollectedTime { get; set; }


    /// <summary>
    /// 出报告日期
    /// </summary>
    [SugarColumn(ColumnDescription = "出报告日期")]
    public DateTime? ReportTime { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", Length = 256)]
    [MaxLength(512)]
    public string? Remark { get; set; }


    /// <summary>
    /// 凭证备注
    /// </summary>
    [SugarColumn(ColumnDescription = "凭证备注")]
    public string? VoucherRemark { get; set; }

    /// <summary>
    /// 渠道对接
    /// </summary>
    [SugarColumn(ColumnDescription = "渠道对接")]
    public long? SourceChanne { get; set; }


    /// <summary>
    /// 渠道名称
    /// </summary>
    [SugarColumn(ColumnDescription = "渠道名称")]
    public string? SourceChanneName { get; set; }


    /// <summary>
    /// 凭证图
    /// </summary>
    [SugarColumn(ColumnDescription = "凭证图片")]
    public string? VoucherImg { get; set; }


}